package com.rayboo.model;

import com.google.gson.Gson;

/**
 * 
 * AdminUser
 * 
 * @author ray
 * @date 2016年9月8日 下午8:11:50
 *
 */
public class AdminUser {

	private Long id;
	private String username;
	private String password;

	public AdminUser(AdminUser user) {
		this.username = user.username;
		this.password = user.password;
		this.id = user.id;
	}

	public AdminUser() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String toJson() {
		return new Gson().toJson(this);
	}
}